package com.qfedu.lc.server.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 2.用户日志表(UserLog)表实体类
 *
 * @author makejava
 * @since 2023-10-19 14:19:50
 */
@Data
@NoArgsConstructor
public class UserLog {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String type;

    private String ip;

    private String info;

    private String mobile;

    private Date ctime;

    public UserLog(Integer userId, String type, String ip, String info, String mobile) {
        this.userId = userId;
        this.type = type;
        this.ip = ip;
        this.info = info;
        this.mobile = mobile;
        this.ctime=new Date();
    }
}
